home *** CD-ROM | disk | FTP | other *** search
- 0 ' ST-BASIC "ELLIPSE.BAS": Created on 20-October-85 by R.VAN
- 1 ' (Attention beginning ST-BASIC hackers: Learn from this!)
- 2 ' Let's write a useless program in pOWeRFUl ST-BASIC shall we?
- 3 '
- 10 START: FullW 2: ClearW 2: Atari$=Chr$(14)+Chr$(15)
- 15 GotoXy 0,1: ? Atari$;" _SPEEDY ELLIPSE DRAW DEMO_ ";Atari$
- 20 ? "This demo draws 260 random ellipses"
- 25 ? "(in COLOR on TV/RGB units) using the"
- 30 ? "'PELLIPSE' ST-BASIC command.": ?: ? "You are in ";
- 35 If Peek(SysTab+0)=4 then Xmax=320:Ymax=200:Colrs=16:? "LOW";
- 40 If Peek(SysTab+0)=2 then Xmax=640:Ymax=200:Colrs=4:? "MEDIUM";
- 45 If Peek(SysTab+0)=1 then Xmax=640:Ymax=400:Colrs=2:? "HIGH";
- 50 ? "-Resolution mode.": ?: ? "Type [CTRL]-[G] to exit program."
- 55 Input "Type [RETURN] or [ENTER] to begin";Amiga$: ClearW 2
- 60 For Loop=1 to 260: Color 1,1+Rnd(1)*(Colrs-1),0,0,Rnd(1)*5
- 65 Pellipse Rnd(1)*Xmax,Rnd(1)*Ymax,20+Rnd(1)*90,20+Rnd(1)*40
- 70 Wave 8,3,0,3000,0: Next Loop: Goto START: ' Amazing!
- 100 '
- 101 ' That wasn't that painful was it? Now let's run the program
- 102 ' and see the puppy work.
- əəəəəəəəəəəəəəə